/*
 * CreateLandmarkAction.java
 *
 * Created on July 25, 2007, 8:19 PM
 *
 * Copyright 2008 David D. Emory
 * 
 * This file is part of Five Points. See <http://www.fpdev.org> for
 * additional information regarding the project.
 * 
 * Five Points is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Five Points is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Five Points.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.fpdev.apps.rtemaster.actions;

import org.fpdev.core.data.LegacyDB;
import org.fpdev.apps.rtemaster.RouteMaster;

/**
 *
 * @author demory
 */
public class CreateLandmarkAction implements ACAction {

  private String name_,  loc_;

  /** Creates a new instance of CreateLandmarkAction */
  public CreateLandmarkAction(String name, String loc) {
    name_ = name;
    loc_ = loc;
  }

  public String getName() {
    return "Create Landmark";
  }

  public void updateDB(LegacyDB db) {
    db.initLandmark(name_, loc_);
  }

  public boolean doAction(RouteMaster av) {
    throw new UnsupportedOperationException("Not supported yet.");
  }

  public boolean undoAction(RouteMaster av) {
    throw new UnsupportedOperationException("Not supported yet.");
  }
}
